#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <QtGui>
#include <QSpinBox>
#include <QSlider>
#include <QLayout>


MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    QWidget *window=new QWidget();
    QSpinBox *spinBox = new QSpinBox(window);
    QSlider *slider = new QSlider(Qt::Horizontal, window);

    QHBoxLayout *layout = new QHBoxLayout();
    layout->addWidget(spinBox);
    layout->addWidget(slider);
    window->setLayout(layout);
    setCentralWidget(window);

}

MainWindow::~MainWindow()
{
    delete ui;
}
